workspace(name = "everest-core")

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "rules_rust",
    sha256 = "36ab8f9facae745c9c9c1b33d225623d976e78f2cc3f729b7973d8c20934ab95",
    urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.31.0/rules_rust-v0.31.0.tar.gz"],
)

load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains")

rules_rust_dependencies()

rust_register_toolchains(
    versions = ["1.74.0"],
)

load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies")

crate_universe_dependencies()

load("@rules_rust//crate_universe:defs.bzl", "crates_repository", "crate")

crates_repository(
    name = "crate_index",
    cargo_lockfile = "//modules:Cargo.lock",
    isolated = False,
    manifests = [
        "//modules:Cargo.toml",
        "//modules/RsIskraMeter:Cargo.toml",
        "//modules/rust_examples/RsExample:Cargo.toml",
        "//modules/rust_examples/RsExampleUser:Cargo.toml",
    ],
    annotations = {
        "everestrs": [crate.annotation(
            crate_features = ["build_bazel"],
        )],
    },
)

load("@crate_index//:defs.bzl", "crate_repositories")

crate_repositories()

load("//third-party/bazel:repos.bzl", "everest_core_repos")

everest_core_repos()

load("//third-party/bazel:defs.bzl", "everest_core_defs")

everest_core_defs()

load("@everest-framework//third-party/bazel:repos.bzl", "everest_framework_repos")

everest_framework_repos()

load("@everest-framework//third-party/bazel:defs.bzl", "everest_framework_deps")

everest_framework_deps()
